// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 500 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// el-date-picker
.el-range-separator {
  box-sizing: content-box;
  font-size: 12px !important;
}
.el-date-picker.has-sidebar {
  width: 400px;
}
.el-picker-panel {
  .el-picker-panel__sidebar {
    width: 100px !important;
    .el-picker-panel__shortcut {
      font-size: $appTextSize !important;
    }
  }
  .el-date-picker__header {
    margin: 6px;
  }
  .el-picker-panel__content {
    margin: 0px !important;
    padding: 10px;
    .el-date-table {
      font-size: $appTextSize !important;
      td {
        padding: 0 0;
      }
      td.today span {
        color: $red !important;
        //background-color: $red !important;
        //color: #fff !important;
      }
      td.start-date span,
      td.end-date span {
        //background-color: #3f51b5;
      }
      td.current span {
        color: #fff !important;
        //background-color: #3f51b5;
      }
    }
    .el-month-table {
      font-size: $appTextSize !important;
      td {
        padding: 4px 0px;
        .cell {
          height: 30px;
          line-height: 30px;
        }
      }
    }

    .el-year-table {
      font-size: $appTextSize !important;
      td {
        padding: 12px 3px;
      }
    }
  }
}
// range 带sidebar
.el-date-range-picker.has-sidebar {
  width: 626px;
  .el-picker-panel__body {
    margin-left: 100px !important;
  }
}
// datetime
.el-date-picker.has-sidebar.has-time {
  width: 400px;
  .el-picker-panel__body {
    margin-left: 100px !important;
  }
  .el-picker-panel__footer {
    padding: 2px;
  }
}

// select
.el-select-dropdown.el-popper {
  .el-select-dropdown__item {
    font-size: $textSizeSecondary !important;
  }
}

// popover
.el-popover {
  .el-popover__title {
    font-size: $textSize;
    margin-bottom: 2px;
    font-weight: 700;
  }
  .ht-table__container {
    margin-top: -8px;
  }
}

// tooltip
.el-tooltip__popper[x-placement^='bottom'] .popper__arrow:after {
  border-bottom-color: $--tooltip-poper !important;
}
.el-tooltip__popper[x-placement^='bottom'] .popper__arrow {
  border-bottom-color: $--tooltip-poper !important;
}
.el-tooltip__popper .is-dark {
  border-bottom-color: $--tooltip-poper !important;
}

.el-tooltip__popper[x-placement^='right'] .popper__arrow:after {
  border-right-color: $--tooltip-poper !important;
}
.el-tooltip__popper[x-placement^='right'] .popper__arrow {
  border-right-color: $--tooltip-poper !important;
}
.el-tooltip__popper .is-dark {
  border-right-color: $--tooltip-poper !important;
}

.el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
  border-top-color: $--tooltip-poper !important;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
  border-top-color: $--tooltip-poper !important;
}
.el-tooltip__popper .is-dark {
  border-top-color: $--tooltip-poper !important;
}

// icon
.el-button {
  font-weight: 500 !important;
  font-size: $appTextSize !important;
  padding: 7px 8px;
  & [class^='el-icon-'],
  & [class^='iconfont'] {
    // padding-right: 4px;
    font-size: $textSize !important;
    font-weight: 700 !important;
  }
}

// message
.el-message {
  .el-message__icon {
    font-size: 18px;
  }
}
